<?php
namespace Home\Controller;

use Think\Controller;

use \Home\Model\UserModel;

class UserController extends Controller {
	
    public function index($id) {
		$User = new UserModel();
		$condition['id'] = $id;
		$data = $User/* ->where($condition) */->select();
		// $name = $data['name'];
		$this->assign('data', $data);
		$this->display();
	}

	public function imageverify() {
		$config = array(
			'useImgBg' => false,
			'bg' => array(255, 255, 255)
		);
		$Verify = new \Think\Verify($config);
		$Verify->entry();
	}

    public function info($id) {
    	session('user.user_id',10);  //设置session
    	$value = session();
    	$data['id']  = $id;
    	$data['status']  = 1;
		$data['content'] = 'content';
		$this->ajaxReturn($data);
	}
	
}